<!doctype html><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=10" />
<script src="https://cdn.bootcss.com/d3/3.5.17/d3.min.js"></script>
<title>d3比例尺</title>
</head>
<body>
    <script>
        var width = 600;
        var height = 600;
        var svg = d3.select('body').append('svg')
        .attr('width', width)
        .attr('height', height);
        var circle = svg.append('circle')
        .attr('cx', 10)
        .attr('cy', 10)
        .attr('r', 20);
        circle.transition()
        .delay(100)
        .duration(5000)
        .ease('linear')
        .attr('cx', 300)
        .attr('r', 45);
    </script>
</body>
</html>
